/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: app/[locale]/terms/page.tsx * Description: Terms of Service page (bilingual legal document) */ import type { Metadata } from "next"; import LegalPage from "@/components/LegalPage"; import { getMessages, isLocale, type Locale } from "@/lib/i18n"; export async function generateMetadata({ params, }: { params: Promise<{ locale: string }>; }): Promise { const { locale } = await params; if (!isLocale(locale)) return {}; const { meta } = getMessages(locale); return { title: { absolute: meta.terms.title }, description: meta.terms.description }; } export default async function TermsPage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const { terms } = getMessages(locale as Locale); return ( ); }